<%@page contentType="text/html; charset=UTF-8" session="false" %>
<%@include  file="/WEB-INF/jspf/import.jspf"%>
<div class="pageContent">
    <form method="post" " 
    	class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
        <div class="pageFormContent" layoutH="56">
           <fieldset id="webContent">
             <legend>用户基本信息</legend>
                <dl class="nowrap">
                    <dt>用户ID: </dt>
                    <dd><input class="textInput " readonly="true" value="${user.uid }" maxlength="30" name="name" size="50"/></dd>
                </dl>
                <dl class="nowrap">
                    <dt>用户名: </dt>
                    <dd><input class="textInput " readonly="true" value="${user.username }" maxlength="30" name="name" size="50"/></dd>
                </dl>
            </fieldset>
            <div class="tabs">
                <div class="tabsHeader">
                    <div class="tabsHeaderContent">
                        <ul>
                            <li><a href="javascript:void(0)"><span>申请中的信息</span></a></li>
                            <li><a href="javascript:void(0)"><span>已加入的车友会</span></a></li>
                        </ul>
                    </div>
                </div>
                <div class="tabsContent">
                    <div>
                        <table class="list nowrap" width="100%" layoutH="180">
                            <thead>
                                <tr>
                                    <th>ID</th>
                                    <th >车友会ID</th>
                                    <th >申请时间</th>
                                    <td>申请状态</td>
                                    <!-- th >操作</th -->
                                </tr>
                            </thead>
                            <tbody>
                                <c:forEach var="application" items="${listApplication}" varStatus="vs">
                                    <tr class="unitBox">
                                        <td>${application.id }</td>
                                        <td>${application.clubId }</td>  
                                        <td><fmt:formatDate value="${application.createAt }" pattern="yyyy-MM-dd"/></td>
                                        <td>
                                           <c:if test="${application.status==0 }">未审</c:if>
                                           <c:if test="${application.status==1 }">已通过</c:if>
                                           <c:if test="${application.status==-1 }">已拒绝</c:if>
                                           <c:if test="${application.status==-2 }">自己取消申请</c:if>
                                        </td>
                                       <!-- td>
                                       <a class="btnDel" href="${ROOT}/admin/user/memberDelete.do?type=1&id=${application.id }" title="确定要删除吗？此操作不能后退！" target="ajaxTodo">删除</a>
                                       </td -->
                                    </tr>
                                </c:forEach>
                            </tbody>
                        </table>
                    </div>
                    <div>
                        <table class="list nowrap" width="100%" >
                            <thead>
                                <tr>
                                    <th>会员ID</th>
                                    <th >车友会ID</th>
                                    <th >加入时间</th>
                                    <td>贡献油值</td>
                                    <td>职位</td>
                                    <td>修改时间</td>
                                    <!-- th >操作</th -->
                                </tr>
                            </thead>
                            <tbody>
                                <c:forEach var="member" items="${listMember}" varStatus="vs">
                                    <tr class="unitBox">
                                        <td>${member.id }</td>
                                        <td>${member.clubId }</td>  
            							<td><fmt:formatDate value="${member.joinAt }" pattern="yyyy-MM-dd"/></td>
            							<td>${member.petrol }</td>                              
                                        <td>
                                           <c:if test="${member.adminType==0 }">会员</c:if>
                                           <c:if test="${member.adminType==1 }">副会长</c:if>
                                           <c:if test="${member.adminType==2 }">会长</c:if>
                                        </td>
                                        <td><fmt:formatDate value="${member.updateAt }" pattern="yyyy-MM-dd"/></td>
                                       <!-- td>
                                       <a class="btnDel" href="${ROOT}/admin/user/memberDelete.do?type=2&id=${member.id }" title="确定要删除吗？此操作不能后退！" target="ajaxTodo">删除</a>
                                       </td -->
                                    </tr>
                                </c:forEach>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
                <li><div class="button"><div class="buttonContent"><button class="close" type="button">关闭</button></div></div></li>
            </ul>
        </div>
    </form>
</div>

